package com.lin.cms.domain;

import java.io.Serializable;
import java.util.Date;

public class VoteTopic implements Serializable {

	private static final long serialVersionUID = 1L;

	private int votetopicId;

	private int siteId;

	private String title;

	private String description;

	private Date startTime;

	private Date endTime;

	private int repeateHour;

	private int totalCount;

	private int multiSelect;

	private String isRestrictMember;

	private String isRestrictIp;

	private String isRestrictCookie;

	private String isDisabled;

	private String isDef;

	public VoteTopic() {
	}

	public int getVotetopicId() {
		return votetopicId;
	}

	public void setVotetopicId(int votetopicId) {
		this.votetopicId = votetopicId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getRepeateHour() {
		return repeateHour;
	}

	public void setRepeateHour(int repeateHour) {
		this.repeateHour = repeateHour;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getMultiSelect() {
		return multiSelect;
	}

	public void setMultiSelect(int multiSelect) {
		this.multiSelect = multiSelect;
	}

	public String getIsRestrictMember() {
		return isRestrictMember;
	}

	public void setIsRestrictMember(String isRestrictMember) {
		this.isRestrictMember = isRestrictMember;
	}

	public String getIsRestrictIp() {
		return isRestrictIp;
	}

	public void setIsRestrictIp(String isRestrictIp) {
		this.isRestrictIp = isRestrictIp;
	}

	public String getIsRestrictCookie() {
		return isRestrictCookie;
	}

	public void setIsRestrictCookie(String isRestrictCookie) {
		this.isRestrictCookie = isRestrictCookie;
	}

	public String getIsDisabled() {
		return isDisabled;
	}

	public void setIsDisabled(String isDisabled) {
		this.isDisabled = isDisabled;
	}

	public String getIsDef() {
		return isDef;
	}

	public void setIsDef(String isDef) {
		this.isDef = isDef;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + votetopicId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final VoteTopic other = (VoteTopic) obj;
		if (votetopicId != other.votetopicId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"votetopicId=" + "'" + votetopicId + "'" + 
			")";
	}
	
}
